/******************************************************************************
Copyright:
2009 Jens Collin (jens.collin@dinomin.com)

This file is part of Envox Decompiler.

Envox Decompiler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Envox Decompiler is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with KitchenOS.  If not, see <http://www.gnu.org/licenses/>.

******************************************************************************/
using System;

namespace EnvoxDecompiler
{
	/// <summary>
	/// Summary description for Note.
	/// </summary>
	public class Note
	{

		public string Text;
		private int _x;
        private int _y;
        private string _rectOverride = null;

        private int _width = 188;
        private int _height = 100;
        
        public Note(string text)
		{
			Text = text;
		}

		// Make default size but place at x, y
		public Note(string text, int x, int y)
		{
			Text = text;
			
		}

        public void SetPos(int x, int y)
        {
            _x = x;
            _y = y;
        }

		public string GetRect()
		{
            if (_rectOverride != null && _rectOverride != "")
            {
                return _rectOverride;
            }

            return _x + " " + _y + " " + (_x + _width) + " " + (_y + _height);
		}

        /// <summary>
        /// Override where this note should be put. Main note for example.
        /// </summary>
        /// <param name="rect"></param>
		public void SetRect(string rect)
		{
			_rectOverride = rect;
		}

	}
}
